package com.dcdata.xian.mapper;

import com.dcdata.xian.pojo.LineExtension;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 峰段发车间隔表 Mapper 接口
 * </p>
 *
 * @author wengf
 * @since 2020-09-14
 */
public interface LineExtensionMapper {

    /**
     *
     * @param lineExtension
     * @return int
     */
    int insert(LineExtension lineExtension);

    /**
     *
     * @param lineId
     * @param lineVersion
     * @return
     */
    LineExtension getLineExtensionByIdAndVersion(@Param("lineId") int lineId, @Param("lineVersion") int lineVersion);

    /**
     *
     * @param lineExtension
     * @return
     */
    int updateLineExtensionByIdAndVersion(@Param("lineExtension")LineExtension lineExtension);

    int updateLineExtensionItemByIdAndVersion(@Param("lineId") int lineId, @Param("lineVersion") int lineVersion,
                                              @Param("routeSystemType") String routeSystemType,
                                              @Param("areaId") int areaId,
                                              @Param("vehiclesCount") int vehiclesCount);
}
